package com.springboot.business.dao;


import com.springboot.domain.User;
import com.springboot.store.po.UserPO;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
* 用户数据访问层
*
*@author  yangz
*@date    2015/8/14
*@version latest
*/
@Repository
public interface UserRepository extends CrudRepository<UserPO, String> {

    /**
     * 昵称查询
     * @param nickname
     * @return
     */
    public List<User> findByNickname(String nickname);

}
